* {
    box-sizing: border-box;
}

.shterm-container {
    flex-grow: 1;
    display: flex;
    background-color: black;
}

.shterm-window {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    outline: none;
}

.shterm-caret {
    position: absolute;
    left: 0;
    top: 0;
    background-color: white;
    mix-blend-mode: difference;
}

.block {
    width: var(--shterm-cell-width);
    height: var(--shterm-cell-height);
}

.bar {
    width: 2px;
    height: var(--shterm-cell-height);
}

.line {
    width: var(--shterm-cell-width);
    height: 2px;
    transform: translateY(calc(var(--shterm-cell-height) - 2px));
}

.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.shterm-scrollbar {
    flex-shrink: 0;
    width: 8px;
    padding-left: 1px;
    position: relative;
}

.shterm-scrollbar-thumb {
    position: absolute;
    background-color: #999;
    border-radius: 3px;
    top: 100px;
    width: 6px;
    height: 100px;
}

shterm-line {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

shterm-row {
    display: flex;
    flex-wrap: nowrap;
}

shterm-span {
    display: inline-block;
    line-height: var(--shterm-cell-height);
    padding-left: calc(var(--shterm-diff-width1) / 2);
    letter-spacing: var(--shterm-diff-width1);
    white-space: pre;
    text-overflow: clip;
    overflow: hidden;
}

shterm-span[w] {
    padding-left: calc(var(--shterm-diff-width2) / 2);
    letter-spacing: var(--shterm-diff-width2);
}